package 第四次;
	public class Cat extends Animal implements Meow {
	public Cat() {
	}
		public Cat(String name) {
			super (name);		
		}
public void eat(Food food) {
	if (!(food instanceof Fish)) {
    System.out.println("猫不吃" + food.getName());
}
if (food instanceof Fish) {
    System.out.println("猫正在吃" + food.getName());
    }

System.out.println("猫吃鱼");	
}
public void Meow(){
	System.out.println("猫会喵喵叫");
}
}
